home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / policykit-1.postinst < prev    next >
Text File  |  2009-10-16  |  1KB  |  55 lines

  1. #!/bin/sh
  2. # postinst script for policykit
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postinst> `configure' <most-recently-configured-version>
  10. #        * <old-postinst> `abort-upgrade' <new version>
  11. #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  12. #          <new-version>
  13. #        * <postinst> `abort-remove'
  14. #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  15. #          <failed-install-package> <version> `removing'
  16. #          <conflicting-package> <version>
  17. # for details, see http://www.debian.org/doc/debian-policy/ or
  18. # the debian-policy package
  19.  
  20. set_perms() {
  21.     USER=$1
  22.     GROUP=$2
  23.     MODE=$3
  24.     FILE=$4
  25.     if ! dpkg-statoverride --list $FILE > /dev/null 2>&1; then
  26.         chown $USER:$GROUP $FILE
  27.         chmod $MODE $FILE
  28.     fi
  29. }
  30.  
  31. case "$1" in
  32.     configure)
  33.     set_perms root root 700 /var/lib/polkit-1
  34.     set_perms root root 4755 /usr/lib/policykit-1/polkit-agent-helper-1
  35.     set_perms root root 4755 /usr/bin/pkexec
  36.     ;;
  37.  
  38.     abort-upgrade|abort-remove|abort-deconfigure)
  39.     ;;
  40.  
  41.     *)
  42.         echo "postinst called with unknown argument \`$1'" >&2
  43.         exit 1
  44.     ;;
  45. esac
  46.  
  47. # dh_installdeb will replace this with shell code automatically
  48. # generated by other debhelper scripts.
  49.  
  50.  
  51.  
  52. exit 0
  53.  
  54.  
  55.